<div class="box contact">
    <h2 class="st_xn_pay">Xác nhận đăng ký</h2>
    <div class="divider"></div>
    <p class="title_pay1">1.1 Thông tin khách hàng</p>
    <p><strong>Họ tên: </strong><?php echo $fullname; ?></p>
    <p><strong>Email: </strong><?php echo $email; ?></p>
    <p><strong>Điện thoại: </strong><?php echo $tel; ?></p>
    <p><strong>Địa chỉ: </strong><?php echo $address; ?></p>
    <p><strong>Yêu cầu đặc biệt: </strong><?php echo $message; ?></p>
    <p><strong>Phương thức thanh toán: </strong><?php echo $billing_name; ?></p>
    
    <p></p>
    <br>
    <p class="title_pay1">1.2 Thông tin sản phẩm</p>
    <div class="box" style="margin: 0px auto;">

        <div class="cart">
            <?php
            $lang = get_language();
            if ($this->cart->total_items() != 0):
                ?>
                <div class="table-responsive">
                    <table class="table table-bordered" style="border:none;">
                        <thead style="background-color: #c22322;color: white;">
                            <tr style="height: 50px;">
                                <th style="width: 5%;text-align: center;vertical-align: middle;"><?php echo __('IP_cart_image'); ?></th>
                                <th style="width: 50%;text-align: center;vertical-align: middle;"><?php echo __('IP_products'); ?></th>
                                <th style="width: 15%;text-align: center;vertical-align: middle;"><?php echo __('IP_cart_price'); ?></th>
                                <th style="width: 15%;text-align: center;vertical-align: middle;"><?php echo __('IP_quantum'); ?></th>
                                <th style="width: 15%;text-align: center;vertical-align: middle;"><?php echo __('IP_price_total'); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $carts = $this->cart->contents();
                            foreach ($carts as $cart):
                                if (SLUG_ACTIVE == 0) {
                                    $uri = get_base_url() . url_title(trim($cart['name']), 'dash', TRUE) . '-ps' . $product->id;
                                } else {
                                    $uri = get_base_url() . $cart['slug'];
                                }
//                                $uri = get_base_url() . url_title($cart['name'], 'dash', TRUE) . '.html';
                                ?>
                                <tr>
                                    <td>
                                        <a href="<?php echo $uri; ?>" title="<?php echo $cart['name']; ?>">
                                            <img src="/images/products/smalls/<?php echo $cart['images']; ?>" title="<?php echo $cart['name']; ?>" height="70px" />
                                        </a>
                                    </td>
                                    <td style="vertical-align: middle;">
                                        <a href="<?php echo $uri; ?>" title="<?php echo $cart['name']; ?>"><?php echo $cart['name']; ?></a>
                                    </td>
                                    <td style="vertical-align: middle;text-align: center;">
                                        <span class="cart_price"><?php echo get_price_in_vnd($cart['price']) . ' VND'; ?></span>
                                    </td>
                                    <td style="vertical-align: middle;text-align: center;">
        <?php echo $cart['qty']; ?>

                                    </td>
                                    <td style="vertical-align: middle;text-align: center;">
                                        <span class="cart_price"><?php echo get_price_in_vnd($cart['subtotal']) . ' VND'; ?></span>
                                    </td>
                                </tr>
    <?php endforeach; ?>
                        </tbody>
                        <tfoot style="background-color: rgb(245, 245, 245);">
                            <tr>
                                <td colspan="4" style="text-align: right;text-transform: uppercase;font-weight: bold;">
    <?php echo __('IP_total'); ?>:
                                </td>
                                <td class="total_price"><?php echo get_price_in_vnd($this->cart->total()) . ' VND'; ?> </td>
                            </tr>
    <?php if ($lang == 'vi') { ?>
                                <tr>
                                    <td colspan="5" style="text-align: right;" class="total_price"><?php echo DocTienBangChu($this->cart->total()); ?> </td>
                                </tr>
    <?php } ?>
                        </tfoot>
                    </table>
                </div>
<?php else: ?>

                <h4 class="alert alert-warning"><?php echo __('IP_cart_shopping_empty'); ?></h4>
<?php endif; ?>
        </div>
        
        <div class="clearfix"></div>

    </div>

     <div class="row payment_box">
        <div class="col-sm-12">
            <?php if ($kind_pay <> '') { ?>
                <p class="title_pay1">1.3 Cách thức <?php echo $billing_name; ?>:</p>
                <?php
                if ($kind_pay == 1) {
                    echo $this->load->view('register_confirm_1');
                } elseif ($kind_pay == 2) {
                    echo $this->load->view('register_confirm_2');
                } elseif ($kind_pay == 3) {
                    echo $this->load->view('register_confirm_3');
                }
                ?>
<?php } ?>

        </div>
    </div>
    <div class="pull-right" style="padding-bottom: 20px;">

            <a class="btn btn-danger registersubmit" title="Xác nhận đăng ký" onclick="javascript:window.location.href = '<?php echo base_url() . 'dang-ky-thanh-cong'; ?>';">Xác nhận đăng ký</a>

            <!--        <a href="/san-pham" class="btn btn-primary" title="Thêm sản phẩm">Thêm sản phẩm</a>
                    <a href="/info-payment" class="btn btn-success" title="Thanh toán">Thanh toán</a>-->
        </div>
</div>